package com.ws.ssmzongjie3.mapper;

import com.ws.ssmzongjie3.bean.Links;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface LinksMapper {
    @Delete("delete from links where links_id=#{linksId}")
    int deleteById(Integer linksId);
    @Insert("insert into links(links_name,links_url) values(#{links_name},#{links_url})")
    int insertLinks(Links record);
    int updateById(Links record);
    @Select("select * from links where links_id=#{linksId}")
    Links getById(Integer linksId);
    List<Links> listLinks(Links links);
}
